package com.sgb.jicai.entity;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * Time:2021/8/10
 * AUTHOR:F_Q
 * Description:
 */
public class ShoplistBean implements Serializable {

    private List<AttrsListBean> attrs;//商品参数
    private String entranceTime;//入场时间
    private String exitTime;//离场时间
    private String firstType;//一级分类编码
    private String firstTypeName;//一级分类名称
    private String goodsAttach;//清单附件url地址
    private String goodsDescribe;//特征描述
    private String goodsMaintenance;//维修保养
    private String goodsMaterial;//商品材料
    private String goodsName;//商品名称
    private String goodsPurpose;//商品用途
    private String goodsQuality;//质量标准
    private String groupbuyClass;//集采分类
    private String num;//集采数量
    private String pickTime;//提货时间
    private String rangeBrands;//品牌范围
    private String secondType;//二级分类业务编号
    private String secondTypeName;//二级分类编码
    private String skuId;//skuId，给成都那边用的
    private String thirdType;//三级分类业务编号
    private String thirdTypeName;//三级分类业务名称
    private String unit;//计量单位
    private String unitName;//单位名称
    private String workerAge;//工龄
    private String workerKind;//工种
    private int index;
    private String startTime;//选择时间的起始时间

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public List<AttrsListBean> getAttrs() {
        return attrs;
    }

    public void setAttrs(List<AttrsListBean> attrs) {
        this.attrs = attrs;
    }

    public String getEntranceTime() {
        return entranceTime;
    }

    public void setEntranceTime(String entranceTime) {
        this.entranceTime = entranceTime;
    }

    public String getExitTime() {
        return exitTime;
    }

    public void setExitTime(String exitTime) {
        this.exitTime = exitTime;
    }

    public String getFirstType() {
        return firstType;
    }

    public void setFirstType(String firstType) {
        this.firstType = firstType;
    }

    public String getFirstTypeName() {
        return firstTypeName;
    }

    public void setFirstTypeName(String firstTypeName) {
        this.firstTypeName = firstTypeName;
    }

    public String getGoodsAttach() {
        return goodsAttach;
    }

    public void setGoodsAttach(String goodsAttach) {
        this.goodsAttach = goodsAttach;
    }

    public String getGoodsDescribe() {
        if (TextUtils.isEmpty(goodsDescribe)) {
            return "";
        } else {
            return goodsDescribe;
        }
    }

    public void setGoodsDescribe(String goodsDescribe) {
        this.goodsDescribe = goodsDescribe;
    }

    public String getGoodsMaintenance() {
        if (TextUtils.isEmpty(goodsMaintenance)) {
            return "";
        } else {
            return goodsMaintenance;
        }
    }

    public void setGoodsMaintenance(String goodsMaintenance) {
        this.goodsMaintenance = goodsMaintenance;
    }

    public String getGoodsMaterial() {
        if (TextUtils.isEmpty(goodsMaterial)) {
            return "";
        } else {
            return goodsMaterial;
        }
    }

    public void setGoodsMaterial(String goodsMaterial) {
        this.goodsMaterial = goodsMaterial;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsPurpose() {
        if (TextUtils.isEmpty(goodsPurpose)) {
            return "";
        } else {
            return goodsPurpose;
        }
    }

    public void setGoodsPurpose(String goodsPurpose) {
        this.goodsPurpose = goodsPurpose;
    }

    public String getGoodsQuality() {
        if (TextUtils.isEmpty(goodsQuality)) {
            return "";
        } else {
            return goodsQuality;
        }
    }

    public void setGoodsQuality(String goodsQuality) {
        this.goodsQuality = goodsQuality;
    }

    public String getGroupbuyClass() {
        return groupbuyClass;
    }

    public void setGroupbuyClass(String groupbuyClass) {
        this.groupbuyClass = groupbuyClass;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getPickTime() {
        return pickTime;
    }

    public void setPickTime(String pickTime) {
        this.pickTime = pickTime;
    }

    public String getRangeBrands() {
        return rangeBrands;
    }

    public void setRangeBrands(String rangeBrands) {
        this.rangeBrands = rangeBrands;
    }

    public String getSecondType() {
        return secondType;
    }

    public void setSecondType(String secondType) {
        this.secondType = secondType;
    }

    public String getSecondTypeName() {
        return secondTypeName;
    }

    public void setSecondTypeName(String secondTypeName) {
        this.secondTypeName = secondTypeName;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public String getThirdType() {
        return thirdType;
    }

    public void setThirdType(String thirdType) {
        this.thirdType = thirdType;
    }

    public String getThirdTypeName() {
        return thirdTypeName;
    }

    public void setThirdTypeName(String thirdTypeName) {
        this.thirdTypeName = thirdTypeName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public String getWorkerAge() {
        return workerAge;
    }

    public void setWorkerAge(String workerAge) {
        this.workerAge = workerAge;
    }

    public String getWorkerKind() {
        return workerKind;
    }

    public void setWorkerKind(String workerKind) {
        this.workerKind = workerKind;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ShoplistBean that = (ShoplistBean) o;
        return index == that.index;
    }

    @Override
    public int hashCode() {
        return Objects.hash(index);
    }

    @Override
    public String toString() {
        return "{" +
                "attrs=" + attrs +
                ", entranceTime='" + entranceTime + '\'' +
                ", exitTime='" + exitTime + '\'' +
                ", firstType='" + firstType + '\'' +
                ", firstTypeName='" + firstTypeName + '\'' +
                ", goodsAttach='" + goodsAttach + '\'' +
                ", goodsDescribe='" + goodsDescribe + '\'' +
                ", goodsMaintenance='" + goodsMaintenance + '\'' +
                ", goodsMaterial='" + goodsMaterial + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsPurpose='" + goodsPurpose + '\'' +
                ", goodsQuality='" + goodsQuality + '\'' +
                ", groupbuyClass='" + groupbuyClass + '\'' +
                ", num='" + num + '\'' +
                ", pickTime='" + pickTime + '\'' +
                ", rangeBrands='" + rangeBrands + '\'' +
                ", secondType='" + secondType + '\'' +
                ", secondTypeName='" + secondTypeName + '\'' +
                ", skuId='" + skuId + '\'' +
                ", thirdType='" + thirdType + '\'' +
                ", thirdTypeName='" + thirdTypeName + '\'' +
                ", unit='" + unit + '\'' +
                ", unitName='" + unitName + '\'' +
                ", workerAge='" + workerAge + '\'' +
                ", workerKind='" + workerKind + '\'' +
                '}';
    }
}
